<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="robots" content="all">
    <meta name="author" content="Tencent-CP">
    <meta name="Copyright" content="Tencent">
    <meta name="description"
          content=""/>
    <meta name="keywords"
          content=""/>
    <title>添加道具</title>
    <link rel="stylesheet" type="text/css" href="Public/Static/Lol/css/index.css"/>
    <link rel="stylesheet" href="Public/Plug/layui/css/layui.css" media="all">
    <style>
        #formulas-list {
            padding: 10px;
        }
    </style>
</head>
<body style="background: #fff;">
<div class="block_type2">

    <form class="layui-form add-equip-form" action="" style="margin-top: 30px;">
        <input type="hidden" name="is_update" value="1">
        <div class="layui-form-item">
            <label class="layui-form-label">道具ID</label>
            <div class="layui-input-block">
                <input type="number" name="equipId" required lay-verify="required" placeholder="请输入道具ID"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">道具名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" required lay-verify="required" placeholder="请输入道具名称" autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">效果</label>
            <div class="layui-input-block">
                <input type="text" name="effect" required lay-verify="required" placeholder="请输入效果" autocomplete="off"
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">关键词</label>
            <div class="layui-input-block">
                <input type="text" name="keywords" required lay-verify="required" placeholder="请输入关键词"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-upload">
                <label class="layui-form-label">
                    <button type="button" class="layui-btn" id="addEquipImg">上传图标</button>
                </label>
                <div class="layui-input-block">
                    <div class="layui-upload-list">
                        <img id="add-image-path" style="height: 70px;width: 70px;" class="layui-upload-img" src="">
                        <input type="hidden" name="imagePath" value="">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required" lay-filter="type">
                    <option value="1">基础道具</option>
                    <option value="2">合成道具</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item equip-type-two">
            <label class="layui-form-label">合成配方</label>
            <div class="layui-input-block">
                <span class="formula-list"></span>
                <button type="button" class="layui-btn layui-btn-sm select-formula">
                    <i class="layui-icon"></i>
                </button>
                <input type="hidden" name="formula" value="{$val.formula}" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">TFTID</label>
                <div class="layui-input-inline">
                    <input type="number" name="TFTID"  class="layui-input" value="{$val.TFTID}">
                </div>
            </div>

        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="add-equip-filter">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

</body>

<!--引用插件-->
<script type="text/javascript" src="Public/Plug/layui/layui.all.js"></script>
<script type="text/javascript" src="Public/Plug/jquery/jquery-3.3.1.min.js"></script>
<script src="Public/Static/Lol/js/equip.js?v=4"></script>
<script>
    var CONF = {};
    // CONF.Heros = {$selectHeros};
    CONF.Equips = {$selectEquips};

</script>
</html>